<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>字幕组</title>
    <!-- Bootstrap -->
    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <style type="text/css">
        body {
            font-size: 12px !important;
            font-family: 'Microsoft YaHei', "宋体", Geneva, sans-serif;
            line-height: 150%;
            color: #575757;
            margin: 0;
            padding: 0;
            background: #eeeeee;
        }
        .navbar{
            display: block;
            position: relative;

        }
        .top{
            top: 0px;
            margin: 0px;
        }
        .news{
            top: 0px;
            margin: 0px;
        }
        #bs-example-navbar-collapse-2{
            float: right;
        }
        .label{
            float: right;
            color: #FFFFFF;
        }

        .t-title{
            border-radius: 5px;
            height: 30px;
            background-color: #333;
        }
        .t-name{
            margin: 0px;
            color: #FFFFFF;
            padding: 6px 18px;
        }
        .middle{
            top: 8px;
            position: relative;
        }

    </style>
    <script src="/Public/js/jquery-3.0.0.min.js"></script>
    
</head>
<body>
<!------  导航条开始 ------->
<div class="bs-example bs-navbar-top-example" data-example-id="navbar-fixed-to-top">
    <nav class="navbar navbar-inverse" role="navigation">
        <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="<?php echo U('Index/Index');?>">字幕组</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-6">
                <ul class="nav navbar-nav">
                    <li><a href="<?php echo U('Index/Index');?>">首页</a></li>

                    <li><a href="<?php echo U('News/Index');?>">资讯</a></li>
                    <li><a href="<?php echo U('Movie/Index');?>">影视库</a></li>


                </ul>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                    <form class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="请输入搜索关键字">
                        </div>
                        <button type="submit" class="btn btn-default">查找</button>
                    </form>
                </div>
            </div><!-- /.navbar-collapse -->
            <iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div>
    </nav>
</div>

<div class="container col-md-12">
    
    <!----------标签页------------->
    <div class="bs-example bs-example-tabs col-md-8" data-example-id="togglable-tabs">
        <ul id="myTabs" class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">全部</a></li>
            <li role="presentation"><a href="#daoshi" role="tab" id="daoshi-tab" data-toggle="tab" aria-controls="profile">导视</a></li>
            <li role="presentation"><a href="#yingping" role="tab" id="yingping-tab" data-toggle="tab" aria-controls="profile">影评</a></li>

        </ul>
        <div id="myTabContent" class="tab-content">
            <div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledby="home-tab">
                <div class="bs-example" data-example-id="simple-table">
                    <table class="table">
                        <tbody>
                        <?php if(is_array($articles)): $i = 0; $__LIST__ = $articles;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$a): $mod = ($i % 2 );++$i;?><tr>
                            <th scope="row"><a href="<?php echo U('Show/index',array('id'=>$a['id']));?>"><?php echo ($a["title"]); ?></a></th>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="daoshi" aria-labelledby="daoshi-tab">
                <table class="table">
                    <tbody>
                        <?php if(is_array($daoshi)): $i = 0; $__LIST__ = $daoshi;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ds): $mod = ($i % 2 );++$i;?><tr>
                                <th scope="row"><a href="<?php echo U('Show/index',array('id'=>$ds['id']));?>"><?php echo ($ds["title"]); ?></a></th>
                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                </table>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="yingping" aria-labelledby="yingping-tab">
                <table class="table">
                    <tbody>
                    <?php if(is_array($yingping)): $i = 0; $__LIST__ = $yingping;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$yp): $mod = ($i % 2 );++$i;?><tr>
                            <th scope="row"><a href="<?php echo U('Show/index',array('id'=>$yp['id']));?>"><?php echo ($yp["title"]); ?></a></th>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </table>
            </div>

        </div>
        <iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe>
    </div>
    <!----------标签页结束------------->
    <!-----热门资讯------------>
    <div class="bs-example col-sm-4" data-example-id="simple-table">
        <table class="table">
            <caption>热门资讯</caption>

            <tbody>
            <?php if(is_array($hots)): $i = 0; $__LIST__ = $hots;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$hot): $mod = ($i % 2 );++$i;?><tr>
                    <th scope="row"><a href="<?php echo U('Show/index',array('id'=>$a['id']));?>"><?php echo ($hot["title"]); ?></a>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    热度：<?php echo ($hot["view"]); ?></th>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="/Public/js/jquery.min.js"></script>

    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="/Public/bootstrap/js/bootstrap.min.js"></script>


    

</body>
</html>